package com.lg.aptcomp.network

import android.content.Context
import com.lg.aptcomp.model.LoginFormModel
import com.lg.aptcomp.model.LoginResponseModel
import com.lg.common.network.RetrofitClient
import com.lg.common.utils.ApplicationConstants.DEFAULT_OS
import io.reactivex.Observable

class ApiConnect {
    companion object{

        fun login(context: Context, loginFormModel: LoginFormModel): Observable<LoginResponseModel> {
            return RetrofitClient.getClient()!!.create(ApiInterface::class.java).login(
                loginFormModel.username.trim()
                , loginFormModel.password.trim())
        }

    }
}